#include <stdio.h>
#include <pthread.h>

void* foo(void* arg)
{
	char* buf = "hello";

	return buf;
}

int main()
{
	pthread_t tid;
	char* str;
	
	pthread_create(&tid,NULL,foo,NULL);
	pthread_join(tid, (void**)&str);
	printf("str = %s\n",str);//

	return 0;
}